// import './assets/main.css'

import { createApp } from 'vue'
// import App from './购物车.vue'
// import App from './留言板.vue'
import App from './考试系统-答题页面.vue'

// createApp(App).mount('#app')

let vm = createApp(App);
vm.directive('btn',{
    created(el,binding){
        // 判断本地有没有token 控制el的状态
        let token = localStorage.getItem('token')
        if(token){
            el.disabled = false;
        }else{
            el.disabled = true;
        }
    }
})
vm.mount('#app')
